import service from '@/utils/crmRequest'

export default () => ({
  // 营销政策列表
  MARKETING_POLICY_LIST: (data) => {
    return service({
      url: '/api/marketingPolicy/list',
      method: 'post',
      data
    })
  },
  // 营销政策创建
  MARKETING_POLICY_CREATE: (data) => {
    return service({
      url: '/api/marketingPolicy/create',
      method: 'post',
      data
    })
  },
  // 营销政策作废
  MARKETING_POLICY_OBSOLETE: (params) => {
    return service({
      url: '/api/marketingPolicy/invalid',
      method: 'put',
      params
    })
  },
})
